#include "C3fdLineEdit.h"
#include <QFocusEvent>

C3fdLineEdit::C3fdLineEdit(QWidget *parent) : QLineEdit(parent)
{
}

/// 解决editingFinished信号槽中弹出QMessageBox，触发两次的问题
void C3fdLineEdit::focusOutEvent(QFocusEvent *event)
{
	if (event->reason() == Qt::ActiveWindowFocusReason)
	{
		return;
	}
	else
	{
		QLineEdit::focusOutEvent(event);
	}
}
